using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class FMS_UserArrearsMap : EntityTypeConfiguration<FMS_UserArrears>
	{
		public FMS_UserArrearsMap()
		{
			// Primary Key
			this.HasKey(t => t.ID);

			// Properties
			// Table & Column Mappings
			this.ToTable("FMS_UserArrears");
			this.Property(t => t.ID).HasColumnName("ID");
			this.Property(t => t.UserID).HasColumnName("UserID");
			this.Property(t => t.DepartmentID).HasColumnName("DepartmentID");
			this.Property(t => t.SubjectID).HasColumnName("SubjectID");
			this.Property(t => t.FeeAmount).HasColumnName("FeeAmount");
			this.Property(t => t.StopDate).HasColumnName("StopDate");
			this.Property(t => t.PrintDate).HasColumnName("PrintDate");
			this.Property(t => t.UpdateDate).HasColumnName("UpdateDate");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
		}
	}
}

